111
This commit is contained in:
+1
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"u-steps.js","sources":["node_modules/uview-plus/components/u-steps/u-steps.vue","../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3Utc3RlcHMvdS1zdGVwcy52dWU"],"sourcesContent":["<template>\n\t<view\n\t class=\"u-steps\"\n\t :class=\"[`u-steps--${direction}`]\"\n\t>\n\t\t<slot></slot>\n\t</view>\n</template>\n\n<script>\n\timport { props } from './props';\n\timport { mpMixin } from '../../libs/mixin/mpMixin';\n\timport { mixin } from '../../libs/mixin/mixin';\n\timport test from '../../libs/function/test';\n\t/**\n\t * Steps 步骤条\n\t * @description 该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。\n\t * @tutorial https://uview-plus.jiangruyi.com/components/steps.html\n\t * @property {String}\t\t\tdirection\t\trow-横向,column-竖向 (默认 'row' )\n\t * @property {String | Number}\tcurrent\t\t\t设置当前处于第几步 (默认 0 )\n\t * @property {String}\t\t\tactiveColor\t\t激活状态颜色 (默认 '#3c9cff' )\n\t * @property {String}\t\t\tinactiveColor\t未激活状态颜色 (默认 '#969799' )\n\t * @property {String}\t\t\tactiveIcon\t\t激活状态的图标\n\t * @property {String}\t\t\tinactiveIcon\t未激活状态图标 \n\t * @property {Boolean}\t\t\tdot\t\t\t\t是否显示点类型 (默认 false )\n\t * @example <u-steps current=\"0\"><u-steps-item title=\"已出库\" desc=\"10:35\" ></u-steps-item></u-steps>\n\t */\n\texport default {\n\t\tname: 'u-steps',\n\t\tmixins: [mpMixin, mixin, props],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tchildren() {\n\t\t\t\tthis.updateChildData()\n\t\t\t},\n\t\t\tparentData() {\n\t\t\t\tthis.updateChildData()\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 监听参数的变化,通过watch中,手动去更新子组件的数据,否则子组件不会自动变化\n\t\t\tparentData() {\n\t\t\t\treturn [this.current, this.direction, this.activeColor, this.inactiveColor, this.activeIcon, this.inactiveIcon, this.dot]\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 更新子组件的数据\n\t\t\tupdateChildData() {\n\t\t\t\tthis.children.map(child => {\n\t\t\t\t\t// 先判断子组件是否存在对应的方法\n\t\t\t\t\ttest.func((child || {}).updateFromParent()) && child.updateFromParent()\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 接受子组件的通知,去修改其他子组件的数据\n\t\t\tupdateFromChild() {\n\t\t\t\tthis.updateChildData()\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tthis.children = []\n\t\t},\n\t\toptions: {\n\t\t\tvirtualHost: false\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/components.scss\";\n\n\t.u-steps {\n\t\t@include flex;\n\n\t\t&--column {\n\t\t\tflex-direction: column\n\t\t}\n\n\t\t&--row {\n\t\t\tflex-direction: row;\n\t\t\tflex: 1;\n\t\t\t/* #ifdef MP */\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\t\t\t/* #endif */\n\t\t}\n\t}\n</style>\n","import Component from 'D:/GitWorkPlace/caseDataBase/node_modules/uview-plus/components/u-steps/u-steps.vue'\nwx.createComponent(Component)"],"names":["mpMixin","mixin","props","test"],"mappings":";;AA2BC,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EACN,QAAQ,CAACA,cAAAA,SAASC,cAAK,OAAEC,sBAAK;AAAA,EAC9B,OAAO;AACN,WAAO,CACP;AAAA,EACA;AAAA,EACD,OAAO;AAAA,IACN,WAAW;AACV,WAAK,gBAAgB;AAAA,IACrB;AAAA,IACD,aAAa;AACZ,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACA;AAAA,EACD,UAAU;AAAA;AAAA,IAET,aAAa;AACZ,aAAO,CAAC,KAAK,SAAS,KAAK,WAAW,KAAK,aAAa,KAAK,eAAe,KAAK,YAAY,KAAK,cAAc,KAAK,GAAG;AAAA,IACzH;AAAA,EACA;AAAA,EACD,SAAS;AAAA;AAAA,IAER,kBAAkB;AACjB,WAAK,SAAS,IAAI,WAAS;AAE1BC,2BAAK,MAAM,SAAS,CAAA,GAAI,kBAAkB,KAAK,MAAM,iBAAiB;AAAA,OACtE;AAAA,IACD;AAAA;AAAA,IAED,kBAAkB;AACjB,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACA;AAAA,EACD,UAAU;AACT,SAAK,WAAW,CAAC;AAAA,EACjB;AAAA,EACD,SAAS;AAAA,IACR,aAAa;AAAA,EACd;AACD;;;;;;;AClED,GAAG,gBAAgB,SAAS;","x_google_ignoreList":[0]}
|
||||
Reference in New Issue
Block a user