这是一段文本。
15 | 16 |这是一段文本。
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /weapp/mall/project.private.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", 3 | "projectname": "mall", 4 | "setting": { 5 | "compileHotReLoad": true, 6 | "urlCheck": false 7 | } 8 | } -------------------------------------------------------------------------------- /weapp/miniprogram-12/miniprogram_npm/@vant/weapp/tab/index.wxml: -------------------------------------------------------------------------------- 1 |Some text A quote in a paragraph
Some text.
在本例中,:lang 为 lang="en" 的 q 元素定义引号:
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/empty/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | var component_1 = require("../common/component"); 4 | (0, component_1.VantComponent)({ 5 | props: { 6 | description: String, 7 | image: { 8 | type: String, 9 | value: 'default', 10 | }, 11 | }, 12 | }); 13 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/panel/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | var component_1 = require("../common/component"); 4 | (0, component_1.VantComponent)({ 5 | classes: ['header-class', 'footer-class'], 6 | props: { 7 | desc: String, 8 | title: String, 9 | status: String, 10 | }, 11 | }); 12 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/slider/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var style = require('../wxs/style.wxs'); 3 | var addUnit = require('../wxs/add-unit.wxs'); 4 | 5 | function barStyle(barHeight, activeColor) { 6 | return style({ 7 | height: addUnit(barHeight), 8 | background: activeColor, 9 | }); 10 | } 11 | 12 | module.exports = { 13 | barStyle: barStyle, 14 | }; 15 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/tag/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var style = require('../wxs/style.wxs'); 3 | 4 | function rootStyle(data) { 5 | return style({ 6 | 'background-color': data.plain ? '' : data.color, 7 | color: data.textColor || data.plain ? data.textColor || data.color : '', 8 | }); 9 | } 10 | 11 | module.exports = { 12 | rootStyle: rootStyle, 13 | }; 14 | -------------------------------------------------------------------------------- /weapp/mall/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mall", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": ".eslintrc.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@vant/weapp": "^1.10.8", 14 | "apifm-wxapi": "^3.61.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /js/vue3/data-version/vite-project/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/empty/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var PRESETS = ['error', 'search', 'default', 'network']; 3 | 4 | function imageUrl(image) { 5 | if (PRESETS.indexOf(image) !== -1) { 6 | return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png'; 7 | } 8 | 9 | return image; 10 | } 11 | 12 | module.exports = { 13 | imageUrl: imageUrl, 14 | }; 15 | 16 | -------------------------------------------------------------------------------- /weapp/miniprogram-12/miniprogram_npm/@vant/weapp/cell-group/index.wxml: -------------------------------------------------------------------------------- 1 |通用的兄弟选择器(~)选择指定元素的所有同级元素。
16 | 17 |段落 1。
18 | 19 |段落 2。
21 |段落 3。
24 |一些代码。
25 | 段落 4。
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /weapp/miniprogram-12/miniprogram_npm/@vant/weapp/count-down/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type TimeData = { 2 | days: number; 3 | hours: number; 4 | minutes: number; 5 | seconds: number; 6 | milliseconds: number; 7 | }; 8 | export declare function parseTimeData(time: number): TimeData; 9 | export declare function parseFormat(format: string, timeData: TimeData): string; 10 | export declare function isSameSecond(time1: number, time2: number): boolean; 11 | -------------------------------------------------------------------------------- /practice/practice2-CSS-choice/practice2.2.3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 |相邻的同胞选择器(+)选择所有作为指定元素的相邻的同级元素。
16 | 17 |div 中的段落 1。
19 |div 中的段落 2。
20 |段落 3。不在 div 中。
23 |段落 4。不在 div 中。
24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /weapp/discovery/pages/index/readme.md: -------------------------------------------------------------------------------- 1 | - 内置了很多样式 2 | 复用 3 | swiper>swiper-item 组件 4 | 5 | - wxml 里{{}}模板 6 | 在页面显示出来 7 | 页面上如果有多个循环片段需要输出 8 | wx:for 指令slides wx:key 唯一值 9 | 每次遍历的时候 item 10 | 11 | - css 在哪写 12 | page/xxx.wxss 业务样式,更具体页面相关 13 | 如果有些通用样式? app.wxss 14 | 15 | - 模块化 面向对象思想 16 | 17 | - 事件 bindtap 移动端tap 事件 18 | 事件处理函数在Page({ 19 | 20 | }) 声明就可以了 21 | - wx.navigateTo({ 22 | 23 | }) 24 | wx 命名空间 源源不断的 25 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/col/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var style = require('../wxs/style.wxs'); 3 | var addUnit = require('../wxs/add-unit.wxs'); 4 | 5 | function rootStyle(data) { 6 | if (!data.gutter) { 7 | return ''; 8 | } 9 | 10 | return style({ 11 | 'padding-right': addUnit(data.gutter / 2), 12 | 'padding-left': addUnit(data.gutter / 2), 13 | }); 14 | } 15 | 16 | module.exports = { 17 | rootStyle: rootStyle, 18 | }; 19 | -------------------------------------------------------------------------------- /weapp/mall/miniprogram_npm/@vant/weapp/row/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var style = require('../wxs/style.wxs'); 3 | var addUnit = require('../wxs/add-unit.wxs'); 4 | 5 | function rootStyle(data) { 6 | if (!data.gutter) { 7 | return ''; 8 | } 9 | 10 | return style({ 11 | 'margin-right': addUnit(-data.gutter / 2), 12 | 'margin-left': addUnit(-data.gutter / 2), 13 | }); 14 | } 15 | 16 | module.exports = { 17 | rootStyle: rootStyle, 18 | }; 19 | -------------------------------------------------------------------------------- /weapp/miniprogram-12/miniprogram_npm/@vant/weapp/cell/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var style = require('../wxs/style.wxs'); 3 | var addUnit = require('../wxs/add-unit.wxs'); 4 | 5 | function titleStyle(data) { 6 | return style([ 7 | { 8 | 'max-width': addUnit(data.titleWidth), 9 | 'min-width': addUnit(data.titleWidth), 10 | }, 11 | data.titleStyle, 12 | ]); 13 | } 14 | 15 | module.exports = { 16 | titleStyle: titleStyle, 17 | }; 18 | -------------------------------------------------------------------------------- /weapp/miniprogram-12/miniprogram_npm/@vant/weapp/common/component.d.ts: -------------------------------------------------------------------------------- 1 | ///